//
//  PlayingScreen.h
//  cocos2dFirstTest
//
//  Created by Daniel Alexander on 6/17/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "ConnectionLayer.h"
#import "MapLayer.h"

@class UILayer;

// Playing Game screen
@interface PlayingScreen : CCLayer
{
    // This will be the read stream.
    CFReadStreamRef myReadStream;
    
    // This will be the write stream.
    CFWriteStreamRef myWriteStream;
    
    BOOL connected; //have we connected to the game server yet?
    ConnectionLayer *connectionLayer;//have a layer that handles the connection process
    MapLayer *theMap;
    
    //UI screen
    UILayer *uiLayer;
}

// returns a CCScene that contains PlayingScreen as the only child
+(CCScene *) scene;
-(void)MovePlayer:(NSInteger)xDelta y:(NSInteger)yDelta;

@end
